package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.pojo.SysUsers;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public SysUsers findByUsername(String username) {

        return userDao.findByUsername(username);
    }

    @Override
    public Set<String> queryRolesByUserId(int userId) {
        return userDao.queryRolesByUserId(userId);
    }

    @Override
    public Set<String> queryPermsByUserId(int userId) {
        return userDao.queryPermsByUserId(userId);
    }
}
